package net.ibizsys.eclipse.studio.api;

/**
 * 网络请求回调
 * 
 * @author <a href='http://www.weibo.com/xjtoo' target='_blank'>Enmaai</a>
 */
public class CallResult
{
	private int retcode;
	private String errorInfo;
	private String content;

	public CallResult()
	{
	}

	public CallResult(int code, String info)
	{
		this.retcode = code;
		this.errorInfo = info;
	}

	public CallResult(int code, String info, String content)
	{
		this.retcode = code;
		this.errorInfo = info;
		this.content = content;
	}

	public boolean isOK()
	{
		return retcode == 0;
	}

	public int getRetcode()
	{
		return retcode;
	}

	public void setRetcode(int retcode)
	{
		this.retcode = retcode;
	}

	public String getErrorInfo()
	{
		return errorInfo;
	}

	public void setErrorInfo(String errorInfo)
	{
		this.errorInfo = errorInfo;
	}

	public String getContent()
	{
		return content;
	}

	public void setContent(String content)
	{
		this.content = content;
	}
}
